<template>
	<view>
		<view class="robotMessage" > <!-- :class="{'item-hide':  !(item.leftStatus &&  item.type == 'hot-message-result')}"  > -->
			<image class="image" src="/static/img/robot.png" mode=""></image>
			<view class="doublec">
				 <view class="hot-message-item">
					 <view class="hot-message-item-subheading"> 
						<text  class="hot-message-item-subheading-tx" >违法行为</text>
					 </view>
					 <text  class="hot-message-item-content">
						 {{item.content != null ? item.content.offence : ''}}
					 </text>
				 </view>
				 <view class="hot-message-item">
					 <view class="hot-message-item-subheading"> 
						<text  class="hot-message-item-subheading-tx" >违法条款</text>
					 </view>
					 <text  class="hot-message-item-content"> {{item.content != null ? item.content.violationTerms : ''}}</text>
					 <text  class="hot-message-item-content"> {{item.content != null ? item.content.violationTermsArticle : ''}}</text>
					 <text  class="hot-message-item-content"> {{item.content != null ? item.content.violationTermsConditions : ''}}</text>
				 </view>
				 <view class="hot-message-item">
					 <view class="hot-message-item-subheading"> 
						<text  class="hot-message-item-subheading-tx" >处罚条款</text>
					 </view>
					 <text  class="hot-message-item-content"> {{item.content != null ? item.content.punishTerms : ''}}</text>
					 <text  class="hot-message-item-content"> {{item.content != null ? item.content.punishTermsArticle : ''}}</text>
					 <text  class="hot-message-item-content"> {{item.content != null ? item.content.punishTermsConditions : ''}}</text>
				 </view>
				 <view class="hot-message-item">
					 <view class="hot-message-item-subheading"> 
						<text  class="hot-message-item-subheading-tx" >处罚内容</text>
					 </view>
					 <text  class="hot-message-item-content">
						 {{item.content != null ? item.content.penalties : ''}}
					 </text>
				 </view>
				 <view class="hot-message-item">
					 <view class="hot-message-item-subheading"> 
						<text  class="hot-message-item-subheading-tx" >改正要求</text>
					 </view>
					 <text  class="hot-message-item-content">
						 {{item.content != null ? item.content.amendmentRequest : ''}}
					 </text>
				 </view>
				 <view class="hot-message-item">
					 <view class="hot-message-item-subheading"> 
						<text  class="hot-message-item-subheading-tx" >已处罚案例</text>
					 </view>
					 <view class="hot-message-item-icon-box" @tap="showCaseImage(item.content != null ? item.content.penaltyCasesPic : '')">
						 <image class="hot-message-item-icon" src="../../static/img/document.png"></image>
						 <text class="hot-message-item-icon-tx">点击查看案例处罚决定书</text>
					 </view>
				 </view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"rebotHotResultMessage",
		props:{
			item:{
				type:Object,
				require:true,
				default:{}
			},
		},
		data() {
			return {
				
			};
		},
		methods:{
			showCaseImage(casePic){//查看热门消息点击案例之后显示图片信息
				uni.navigateTo({
					url: '/pages/robot/hotMessageCaseImage?picUrl='+casePic
				})
			},
		}
	}
</script>

<style lang="scss">
	.robotMessage {
			display: flex;
			align-items: flex-start;
			flex-direction: row;
			justify-content: flex-start;
			
			
			.image {
				width: 59rpx;
				height: 50rpx;
				margin: 0 14rpx 0 0;
			}
			
			.doublec {
				margin: 0;
				border-radius: 14rpx;
				background-color: white; 
				border: 2rpx solid rgba(187, 187, 187, 0.5294117647);
				padding: 10 30rpx; 
				margin-bottom: 30rpx;
				max-width: 600rpx;
				// max-width: 600rpx;
				/* overflow: hidden; */
				
				.left-message {
					font-size: 18rpx;
					font-family: AppleColorEmoji;
					color: #000;
					white-space: nowrap;
					text-overflow: ellipsis; 
					max-width: 500rpx;
					margin: 0;
					border-radius: 14rpx; 
					/* overflow: hidden; */ 
				}
			}
		}
		
		.hot-message-item{
				display: flex;
				flex-direction: column;
				justify-content: flex-start;
				align-items: flex-start;
				padding: 10rpx;
				width: 530rpx;
		}
		.hot-message-item-subheading{
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				align-items: center;
				background-image:linear-gradient(to right,#CF0303,#ffffff);
				padding: 10rpx;
				width: 500rpx;
				border-radius: 10rpx;
		}
		.hot-message-item-subheading-tx{
				 font-size: 23rpx;
				 font-weight: 700;
				 color: #fff;
		}
		.hot-message-item-content{
				 font-size: 20rpx;
				 color: #8f8f8f;
				 padding: 10rpx; 
		}
		.hot-message-item-icon-box{ 
				 padding: 10rpx 20rpx;
				 display: flex;
				 flex-direction: row;
				 justify-content: flex-start;
				 align-content: center;
				 width: 500rpx;
				 background-color: #d7d9df;
				 border-radius: 10rpx;
				 margin-top: 10rpx;
				 
				 .hot-message-item-icon{
					 width: 30rpx;
					 height: 30rpx;
				 }
				 
				 .hot-message-item-icon-tx{
					font-size: 20rpx;
					color: #505050;
					line-height: 30rpx;
					margin-left: 10rpx;
				 }
		} 
</style>